home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / docsdemo / pov / layered4 < prev    next >
Text File  |  1997-01-21  |  3KB  |  152 lines

  1. #include "colors.inc"
  2.  
  3. camera {
  4.   location <0, 0, -6>
  5.   look_at <0, 0, 0>
  6. }
  7.  
  8. light_source { <-20, 30, -100> color White }
  9. light_source { <10, 30, -10> color White }
  10. light_source { <0, 30, 10> color White }
  11.  
  12. #declare PLAIN_TEXTURE =  
  13.   // red/white check
  14.   texture {
  15.     pigment {
  16.       checker
  17.       color rgb<1.000, 0.000, 0.000> 
  18.       color rgb<1.000, 1.000, 1.000>  
  19.       scale <0.2500, 0.2500, 0.2500>
  20.     }
  21.   }
  22.  
  23. // plain red/white check box
  24.  
  25. box { <-1, -1, -1>, <1, 1, 1>
  26.   texture {
  27.     PLAIN_TEXTURE
  28.   }
  29.   translate  <-1.5, 1.2, 0>
  30. }
  31.  
  32. #declare FADED_TEXTURE = 
  33.   // red/white check texture
  34.   texture {
  35.     pigment {
  36.       checker
  37.       color rgb<0.920, 0.000, 0.000>
  38.       color rgb<1.000, 1.000, 1.000>
  39.       scale <0.2500, 0.2500, 0.2500>
  40.     }
  41.   }
  42.   // greys to fade red/white
  43.   texture {
  44.     pigment {
  45.       checker
  46.       color rgbf<0.632, 0.612, 0.688, 0.698>
  47.       color rgbf<0.420, 0.459, 0.520, 0.953>
  48.       turbulence 0.500
  49.       scale <0.2500, 0.2500, 0.2500>
  50.     }
  51.   }
  52.  
  53. // faded red/white check box
  54.  
  55. box { <-1, -1, -1>, <1, 1, 1>
  56.   texture {
  57.     FADED_TEXTURE
  58.   }
  59.   translate  <1.5, 1.2, 0>
  60. }
  61.  
  62. #declare STAINED_TEXTURE = 
  63.   // red/white check
  64.   texture {
  65.     pigment {
  66.       checker
  67.       color rgb<0.920, 0.000, 0.000>
  68.       color rgb<1.000, 1.000, 1.000>
  69.       scale <0.2500, 0.2500, 0.2500>
  70.     }
  71.   }
  72.   // greys to fade check
  73.   texture {
  74.     pigment {
  75.       checker
  76.       color rgbf<0.634, 0.612, 0.688, 0.698>
  77.       color rgbf<0.421, 0.463, 0.518, 0.953>
  78.       turbulence 0.500
  79.       scale <0.2500, 0.2500, 0.2500>
  80.     }
  81.   }
  82.   // wine stain
  83.   texture {
  84.     pigment {
  85.       spotted
  86.       color_map {
  87.         [ 0.000  color rgb<0.483, 0.165, 0.165> ]
  88.         [ 0.329  color rgbf<1.000, 1.000, 1.000, 1.000> ]
  89.         [ 0.734  color rgbf<1.000, 1.000, 1.000, 1.000> ]
  90.         [ 1.000  color rgb<0.483, 0.165, 0.165> ]
  91.       }
  92.       turbulence 0.500
  93.       frequency 1.500
  94.     }
  95.   }
  96.  
  97. // stained box
  98.  
  99. box { <-1, -1, -1>, <1, 1, 1>
  100.   texture {
  101.     STAINED_TEXTURE
  102.   }
  103.   translate  <-1.5, -1.2, 0>
  104. }
  105.  
  106. #declare WRINKLED_TEXTURE = 
  107.   // red and white check
  108.   texture {
  109.     pigment {
  110.       checker
  111.       color rgb<0.920, 0.000, 0.000>
  112.       color rgb<1.000, 1.000, 1.000>
  113.       scale <0.2500, 0.2500, 0.2500>
  114.     }
  115.   }
  116.   // greys to "fade" checks
  117.   texture {
  118.     pigment {
  119.       checker
  120.       color rgbf<0.632, 0.612, 0.688, 0.698>
  121.       color rgbf<0.420, 0.459, 0.520, 0.953>
  122.       turbulence 0.500
  123.       scale <0.2500, 0.2500, 0.2500>
  124.     }
  125.   }
  126.   // the wine stains
  127.   texture {
  128.     pigment {
  129.       spotted
  130.       color_map {
  131.         [ 0.000  color rgb<0.483, 0.165, 0.165> ]
  132.         [ 0.329  color rgbf<1.000, 1.000, 1.000, 1.000> ]
  133.         [ 0.734  color rgbf<1.000, 1.000, 1.000, 1.000> ]
  134.         [ 1.000  color rgb<0.483, 0.165, 0.165> ]
  135.       }
  136.       turbulence 0.500
  137.       frequency 1.500
  138.     }
  139.     normal {
  140.       wrinkles 5.0000
  141.     }
  142.   }
  143.  
  144. // wrinkled box
  145.  
  146. box { <-1, -1, -1>, <1, 1, 1>
  147.   texture {
  148.     WRINKLED_TEXTURE
  149.   }
  150.   translate  <1.5, -1.2, 0>
  151. }
  152.